package cn.wolfcode.wechat.domain;


import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

@Getter
@Setter
public class OrderBill {
    private Long id;
    private String username;         //客户姓名
    private String userTelphone;     //联系电话
    private int peopleAmount;    //需求人数
    private int mealType;         //套餐类型
    private BigDecimal  fee;       //订单价格
    private String orderBillNum;     //订单编号
    private String  mealImplementAddress;//套餐生效地点
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date mealImplementTime;   //套餐生效时间
    private String remark;           //备注
    private String openid;



    public String getMealTypeDisplay() {
        switch (this.mealType) {
            case 1:return "套餐1:包你满意";
            case 2:return "套餐2:棠下扛把子";
            case 3:return "套餐3:天河陈浩南";
            case 4:return "套餐4:广州铜锣湾";
            case 5:return "套餐5:私人订制";
            default:return "";
        }
    }



}
